﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    public class Config
    {

        public static string TestDBConn
        {
            get
            {
                string strConn = ConfigurationManager.AppSettings["TestConn"];
                return strConn;
            }
        }
        public static string TmpPath
        {
            get
            {
                string path = System.Windows.Forms.Application.StartupPath;
                string tmpPath = path + "\\tmp\\";
                if (!System.IO.Directory.Exists(tmpPath))
                {
                    System.IO.Directory.CreateDirectory(tmpPath);
                }
                return tmpPath;
            }
        }
    }
}
